using Verse;

namespace RimWorld;

public class InteractionWorker_DeepTalk : InteractionWorker
{
	private const float BaseSelectionWeight = 0.075f;

	private SimpleCurve CompatibilityFactorCurve = new SimpleCurve
	{
		new CurvePoint(-1.5f, 0f),
		new CurvePoint(-0.5f, 0.1f),
		new CurvePoint(0.5f, 1f),
		new CurvePoint(1f, 1.8f),
		new CurvePoint(2f, 3f)
	};

	public override float RandomSelectionWeight(Pawn initiator, Pawn recipient)
	{
		return 0.075f * CompatibilityFactorCurve.Evaluate(initiator.relations.CompatibilityWith(recipient));
	}
}
